package com.example.jetpack

import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList

/**
 * 通过工程构建 PageList 数据
 */
class StudentViewModel : ViewModel(){

    val listLiveData : LiveData<PagedList<Student>> =
        LivePagedListBuilder<Int,Student>(StudentDataSourceFactory(),Flag.SIZE).build()


}